home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
MWCC03
/
MESSAGE.ZIP
/
MSGTEST.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-08-18
|
2KB
|
55 lines
{**********************************************************************}
{* *}
{* Microworks Sample Application *}
{* *}
{* for Borland Pascal v7.0 and Turbo Pascal for Windows v1.5 *}
{* *}
{* Copyright 1992-93 Jeff Franks (Microworks) Sydney, Australia. *}
{* *}
{* You are free to use, modify, reproduce and distribute the *}
{* Sample Files (and/or any modified version) in any way you *}
{* find useful. *}
{* *}
{**********************************************************************}
{*** Introduction
Application := Msgtest
Files := Msgtest.pas and Msgunit.pas
Units Required := MWCC.dll
Tabs := 2
Screen := 800 * 600
Date := August, 1993.
Msgtest is a sample program that uses the stand alone message box unit 'MsgUnit'.
***}
program MsgTest;
uses WinTypes, WinProcs, MsgUnit;
var
Reply : Integer;
begin
Reply := MWCCMsgBox(0, 'This is a test piece of text. It contains letters ' +
'and words. Some words are longer than others but all ' +
'are equally meaningless. Their only purpose is to fill ' +
'up 255 characters because that''s the maximum number ' +
'characters allowed in these message boxes....',
'Sample Message Box', mb_AbortRetryIgnore or
mb_IconAsterisk, 'BWCC');
if Reply = id_Abort then
Messagebox(0, 'You selected Abort', 'Reply', mb_ok);
if Reply = id_Retry then
Messagebox(0, 'You selected Retry', 'Reply', mb_ok);
if Reply = id_Ignore then
Messagebox(0, 'You selected Ignore', 'Reply', mb_ok);
end.